Electronic lock and use thereof

ABSTRACT

This invention provides an electronic lock and a use thereof, and the electronic lock includes a lock shell, a rope winded disc, a lock rope head, a sliding lock block, and a controlling and driving device. The lock shell has a first lock hole and an insertion hole. A lock rope is winded at the rope winded disc, and the lock rope is operatively pulled out from the rope winded disc or returns inside the rope winded disc. The lock rope head is inserted into the insertion hole and connected with one end of the lock rope. The sliding lock block is disposed inside the lock shell through a spring, and one end of the sliding lock block is placed in the first lock hole.

BACKGROUND OF THE INVENTION Field of the Invention

This invention relates to an electronic lock, and more particularly, toan electronic lock applicable to a shared scooter. In addition, thisinvention further provides a use of the electronic lock on a sharedvehicle, especially the shared scooter.

Description of the Related Art

With the prevalence of the shared mode, a shared bicycle, a sharedscooter, a shared electric vehicle and other shared vehicles are verycommon in cities. At present, the locking way of the shared vehicles isvery simple, and a vehicle lock has only two functions: unlocking andlocking. After the vehicle lock is unlocked, a user can use the sharedvehicle, and it starts timing and charging. One drawback of this vehiclelock is that it does not have the function to merely lock the vehiclewithout ending the trip, that is, the lock does not have the function tostop for a short time. During usage, if the user needs to stop riding inthe middle of a trip and leave for a few minutes, considering that ifthe user leaves the vehicle without locking the vehicle, the vehicle maybe ridden by others. Therefore the user can only lock the vehicle to endthis trip, and it starts timing and charging again when the user comesback. If the vehicle is ridden by others during the period of leaving,the user has to find other available vehicles, which will be relativetroublesome and take time to find other vehicles, resulting in poor userexperience. All in all, the existing shared vehicle cannot meet therequirement that the user leaves for a short time in the middle of thetrip and does not want to return the vehicle. How to solve this problemand make the use of the shared vehicle more humanized is a topic we needto discuss.

BRIEF SUMMARY OF THE INVENTION

The objective of this invention is to provide an electronic lock and ause thereof, which solves the problem that the existing shared vehiclecannot only be locked without ending the trip.

To solve the above-mentioned problem, this invention provides anelectronic lock, and the electronic lock includes a lock shell, a ropewinded disc, a lock rope head, a sliding lock block, and a controllingand driving device. The lock shell has a first lock hole and aninsertion hole. The rope winded disc is disposed inside the lock shell,a lock rope is winded at the rope winded disc, and the lock rope isoperatively pulled out from the rope winded disc or returns inside therope winded disc. The lock rope head is inserted into the insertion holeand connected with one end of the lock rope. The sliding lock block isdisposed inside the lock shell through a spring, and one end of thesliding lock block is placed in the first lock hole. The controlling anddriving device is disposed inside the lock shell. When locking isrequired, a user pulls out the lock rope head from the insertion hole,the lock rope head is inserted into the first lock hole after the lockrope is pulled out from the rope winded disc, and the sliding lock blocklocks the lock rope head. When unlocking is required, the controllingand driving device drives the sliding lock block to slide in an oppositedirection, the user pulls out the lock rope head from the first lockhole, and the sliding lock block returns to an original position throughthe spring.

According to an embodiment of this invention, the controlling anddriving device may include a sensor, a printed circuit board, and amotor. The sensor may be disposed inside the lock shell. The printedcircuit board may be disposed inside the lock shell and electricallyconnected with the sensor. The motor may be disposed inside the lockshell and electrically connected with the printed circuit board. Duringusage, when the lock rope head is inserted into the first lock hole, thesensor may detect that the lock rope head is locked and may feed back aresult. When the printed circuit board receives an unlock instruction,the printed circuit board may control the motor such that the motordrives the sliding lock block to slide in the opposite direction forunlocking.

According to one embodiment of this invention, the controlling anddriving device may further include a pin and a spring. One end of thepin may be located in the first lock hole, the spring may be disposedinside the lock shell and may abut against the pin such that the pin andthe sensor keep in contact, and the sensor may detect whether the lockrope head is inserted into the first lock hole.

According to one embodiment of this invention, the controlling anddriving device may further include a cam. The cam may be installed at anoutput shaft of the motor, the cam may have a spiral sliding surfacetaking the output shaft of the motor as a center, and one end of thesliding lock block may abut against the sliding surface of the cam.

According to one embodiment of this invention, the cam may have twofirst limiting blocks spaced apart, the lock shell may have two secondlimiting blocks spaced apart, and the motor may stop rotating when themotor rotates to a position where one of the first limiting blocks isstuck into one of the second limiting blocks.

According to one embodiment of this invention, the rope winded disc mayhave a winding mechanism arranged in a spiral way, the lock rope may bewinded along the winding mechanism in the spiral way, and the lock ropemay automatically return inside the rope winded disc under action of thewinding mechanism when the lock rope head is pulled out from the firstlock hole.

According to one embodiment of this invention, a side wall of one end ofthe lock rope head may form an annular depression, and one end of thesliding lock block may fasten the depression of the lock rope headthereby locking the lock rope head when the lock rope head is insertedinto the first lock hole.

According to one embodiment of this invention, the electronic lock mayinclude a key, the lock shell may have a first keyhole, and the key maydrive the sliding lock block to slide thereby unlocking the lock ropehead when the key is inserted into the first keyhole and the key works.

According to another aspect of this invention, this invention furtherprovides a use of the above-mentioned electronic lock, and theelectronic lock is applied to a shared vehicle.

According to one embodiment of this invention, the electronic lock isapplied to a shared electric scooter, and the shared electric scooterhas a controller, a positioning tracker, and a front straight rod. Theelectronic lock is installed at the front straight rod, the controllingand driving device is electrically connected with the controller, thepositioning tracker and the controller are electrically connected, thepositioning tracker and a management platform are communicativelyconnected, and the user is communicatively connected with the managementplatform through APP. When the locking is required, the lock rope headis inserted into the first lock hole, the sensor detects that the lockrope head is locked and feeds back the result to the controller throughthe printed circuit board, and the controller controls the sharedelectric scooter to be in a locking state. When the unlocking isrequired, the user operates App to send the unlocking instruction to themanagement platform, the management platform sends the unlockinginstruction to the controller through the positioning tracker, and thecontroller indirectly controls the motor to drive by controlling theprinted circuit board, thereby achieving unlocking.

Compared with the prior art, this technical solution has the followingadvantages.

In this invention, the rope winded disc enables the lock rope to beoperatively pulled out from the rope winded disc or return back insidethe rope winded sick. One end of the lock rope is connected with thelock rope head, the user can pull out the lock rope head from theinsertion hole and pulls out the lock rope from the rope winded sick,and finally the lock rope head is inserted into the first lock hole andis locked such that the lock rope head cannot be pulled out. Theelectronic lock can be applied to shared vehicles, such as a sharedbicycle, a shared scooter, or a shared electric vehicle. The electroniclock is added to the shared vehicle, and the electronic lock does notaffect the charging for the vehicle lock of the shared vehicle. Theelectronic lock and the vehicle lock are independently used andconnected with the management platform system through APP of the user tosend, receive and execute the instruction. In this way, when the userneeds to leave in the middle of the riding trip, the vehicle lock of theshared vehicle does not need to be locked, and the previous riding tripdoes not need to be ended. Instead, the electronic lock can be used tolock the shared vehicle for a short time, such that the shared vehiclewill not be ridden by others. When the user comes back, the electroniclock can be unlocked through APP of the user, thereby continue using theshared vehicle. The user does not need to find another vehicle, there isno need to scan the quick response code again to unlock the lock, andthe timing and charging of the entire riding trip will not be stopped.This invention solves the problem that the conventional shared vehiclecannot stop for a short time in the middle of the riding trip and thevehicle lock cannot be locked without ending the trip, such that theusing function of the shared vehicle is more humanized, which avoids thetrouble of finding another vehicle when the user leaves for a short timeand greatly improves the user's experience.

In this invention, by disposing the sensor, the printed circuit board,and the motor, automatic locking and unlocking of the electronic lock isachieved. After locking, the shared vehicle cannot be ridden by others,and the operation is simple, convenient and fast.

In this invention, by disposing two first limiting blocks at the cam andcorrespondingly disposing two second limiting blocks at the lock shell,the maximum angle range in which the cam rotates toward two directionsis limited. When the cam rotates to a position where one of the firstlimiting blocks is stuck into one of the second limiting blocks, the camcannot continue to rotate such that the motor stops driving.

In this invention, by disposing the winding mechanism at the rope windeddisc, the lock rope can automatically return inside the rope windeddisc. When the user does not need to use the electronic lock or theelectronic lock is unlocked, the lock rope head can be inserted backinto the insertion hole, and the lock rope automatically returns insidethe rope winded disc under the action of the winding mechanism when thelock rope is no longer subject to external force. It not only protectsthe lock rope but also makes the electronic lock be relative beautifulduring usage.

In this invention, by additionally disposing the key, another way forthe management staff to open the electronic lock is provided. When theelectronic lock fails to be opened or needs to be repaired, themanagement staff or the maintenance staff can use the key to open theelectronic lock.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of a three-dimensional structure of anelectronic lock provided by this invention;

FIG. 2 is a schematic diagram of an internal structure of the electroniclock provided by this invention;

FIG. 3 is schematic diagram of a three-dimensional structure of a motorand a cam of the electronic lock provided by this invention;

FIG. 4 shows an installation and cooperation relationship among themotor, the cam, and a sliding lock block of the electronic lock providedby this invention;

FIG. 5 is a schematic diagram of the internal structure of theelectronic lock provided by this invention in a case of omitting themotor, showing two second limiting blocks of a lock shell; and

FIG. 6 is a use scenario of the electronic lock provided by thisinvention, showing an installation way between the electronic lock and afront straight rod of a shared scooter.

DETAILED DESCRIPTION OF THE INVENTION

The following description is only for explaining this invention suchthat those skilled in the art can implement this invention. Embodimentsdescribed below are only examples, and those skilled in the art willthink of other obvious variations. The basic principle of this inventiondefined in the following description can be applied to otherimplementation solutions, variation solutions, improvement solutions,equivalent solutions, and other solutions without departing from thespirit and scope of this invention.

The invention provides an electronic lock, and more particularly, to anelectronic lock applied to a shared vehicle. For example, the electroniclock can be applied to a shared bicycle, a shared scooter, or a sharedelectric vehicle. The electronic lock can be used to lock the sharedvehicle separately without affecting the use of an original vehicle lockof the shared vehicle, thereby locking the shared vehicle without endinga riding trip and re-charging. Specifically, the electronic lockcomprises a lock shell 10, a rope winded disc 20, a lock rope head 30, asliding lock block 40, and a controlling and driving device 50.

The lock shell 10 is a cuboid shape with a cavity inside. The lock shell10 has a first lock hole 101 and an insertion hole 102. A hole passageof the first lock hole 101 has a predetermined length, and the firstlock hole 101 has a first opening 1011 and a second opening 1012. Thefirst lock hole 101 communicates with an outside of the lock shell 10through the first opening 1011, and the first lock hole 101 communicateswith the cavity inside the lock shell 10 through the second opening1012. The insertion hole 102 is a through hole communicating with thecavity inside the lock shell 10.

Further, the lock shell 10 has a first keyhole 103 and a plurality ofsecond threaded holes 104. The first keyhole 103 communicates with thecavity inside the lock shell 10. Optionally, in this embodiment, inorder to simplify the structure, the first lock hole 101, the insertionhole 102, and the first keyhole 103 are all located at the same side ofthe lock shell 10 and are spaced apart. The second threaded holes 104are used for installation and fixation of the electronic lock, that is,the electronic lock is installed at a target position through the secondthreaded holes 104 in application. Optionally, outer walls of the lockshell 10 have four protruding installation portions 11. The number ofsecond threaded holes 104 is four, and all second threaded holes 104 areblind holes. Four threaded holes 104 are correspondingly distributed atfour installation portions 11. In addition, the lock shell 10 also hastwo second limiting blocks 105 spaced apart.

The rope winded disc 20 is disposed inside the lock shell 10, and a lockrope 21 is winded at the rope winded disc 20. The rope winded disc 20has a winding mechanism 22 arranged in a spiral way, and the lock rope21 is winded along the winding mechanism 22 in the spiral way.

The lock rope head 30 is inserted into the insertion hole 102 andconnected with one end of the lock rope 21. Specifically, one end of thelock rope 21 is connected with the lock rope head 30 through theinsertion hole 102.

A side wall of the other end of the lock rope head 30 forms an annulardepression 301. When the lock rope head 30 is pulled out such that thelock rope 21 is pulled out, the lock rope 21 is pulled out from the ropewinded disc 20; and when the lock rope head 30 is inserted back into theinsertion hole 102, as pulling force acting on the lock rope 21 iswithdrawn, the lock rope 21 automatically returns inside the rope windeddisc 20 under the action of the winding mechanism 22. In other words,the lock rope 21 is operatively pulled out from the rope winded disc 20or returns inside the rope winded disc 20.

The sliding lock block 40 is a long strip, and the sliding lock block 40is slidably disposed inside the lock shell 10 through a spring and islocated in a position corresponding to the first keyhole 103.Specifically, an inner wall of the lock shell 10 has an installationgroove, the spring is placed in the installation groove of the lockshell 10, and one end of the spring is against the inner wall of theinstallation groove. The sliding lock block 40 is arranged in a positioncorresponding to the installation groove of the lock shell 10, and theother end of the spring is against the sliding lock block 40. One end ofthe sliding lock block 40 is placed in the first lock hole 101 throughthe second opening 1012. When the lock rope head 30 is inserted into thefirst lock hole 101, one end of the sliding lock block 40 fastens thedepression 301 of the lock rope head 30 thereby locking the lock ropehead 30, and the lock rope head 30 cannot be pulled out from the firstlock hole 101.

The controlling and driving device 50 is disposed inside the lock shell10 and is configured to control and drive the sliding lock block 40 toslide, thereby realizing locking and unlocking of the electronic lock.Specifically, the controlling and driving device 50 is connected with amanagement platform of the shared vehicle in a communication way throughan APP of a user, that is, the user can operate the APP and send orreceive an instruction to the controlling and driving device through themanagement platform of the shared vehicle. When the locking is required,the user pulls out the lock rope head 30 from the insertion hole 102,and the lock rope head 30 is inserted into the first lock hole 101 afterthe lock rope 21 is pulled out from the rope winded disc 20. The slidinglock block 40 locks the lock rope head 30. When the unlocking isrequired, the controlling and driving device 50 drives the sliding lockblock 40 to slide in an opposite position. At this time, the slidinglock block 40 no longer locks the lock rope head 30, and the user pullsout the lock rope head 30 from the first lock hole 101. After the lockrope head 30 is pulled out from the first lock hole 101, the lock rope21 automatically returns inside the rope winded disc 20 under the actionof the winding mechanism 22, and the sliding lock block 40 returns tothe original position through the spring.

Further, the controlling and driving device 50 includes a sensor 51, aprinted circuit board 52, and a motor 53. The sensor 51 is disposedinside the lock shell 10 and is used to automatically detect whetherlock rope head 30 is inserted into the first lock hole 101.

Further, the controlling and driving device 50 includes a pin 54 and aspring 55. The pin 54 is disposed inside the lock shell 10, and one endof the pin 54 is located in the first lock hole 101. The pin 54 also hasa contacting plate 541. The spring 55 is disposed at the lock shell 10,and one side of the spring 55 is sleeved on the pin 54 to against thepin 54, such that the contacting plate 541 of the pin 54 and the sensor51 are always in contact. The sensor 51 detects whether the lock ropehead 30 is inserted into the first lock hole 101 through the pin 54.

The printed circuit board 52 is disposed inside the lock shell 10 and iselectrically connected with the sensor 51. The motor 53 is disposedinside the lock shell 101 and is electrically connected with the printedcircuit board 52. During usage, when the lock rope head 30 is insertedinto the first lock hole 101, the sensor 51 detects that the lock ropehead 30 is locked and then feeds back a result; and when the printedcircuit board 52 receives an unlocking instruction, the printed circuitboard 52 controls the motor 53 such that the motor 53 drives the slidinglock block 40 to slide in the opposite direction for unlocking.

Further, the controlling and driving device 50 includes a cam 56, andthe cam 56 is installed at an output shaft of the motor 53. The cam 56has a spiral sliding surface 561 taking the output shaft of the motor 53as a center, and one end of the sliding lock block 40 abuts against thesliding surface 561 of the cam 56. The motor 53 drives the sliding lockblock 40 to slide through the cam 56. When the output shaft of the motor53 rotates, the motor 53 drives the cam 56 to rotate, and the cam 56drives the sliding lock block 40 to slide along the sliding surface 561of the cam 56. Since the sliding surface 561 is spiral, the sliding lockblock 40 will slide in a straight line inside the lock shell 10.

The cam 56 also has two first limiting blocks 562 spaced apart, and thecam 56 is installed at a position corresponding to the two secondlimiting blocks 105 of the lock shell 10. When the motor 53 rotates to aposition where one of the first limiting blocks 562 is stuck in one ofthe second limiting blocks 105, the motor 53 stops driving, and the cam56 cannot continue to rotate. That is, through the two first limitingblocks 562 of the cam 56, a maximum angle range of the cam 56 toward twodirections can be limited, respectively. The cam 56 can only be allowedto rotate to the position where one of the first limiting blocks 562 isstuck in one of the second limiting blocks 105.

The electronic lock also includes a key 60, and the key 60 is used tounlock the electronic lock in a fault condition. When the key 60 isinserted into the first keyhole 103 and the key 60 is operated, the key60 contacts and drives the sliding lock block 40 to slide therebyunlocking the lock rope head 30, such that the electronic lock isunlocked. In a practical application, the key 60 is separately preparedfor a management staff or a maintenance staff, and an ordinary user ofthe electronic lock does not need to prepare the key 60.

The electronic lock provided by this invention can be applied to theshared vehicle, such as the shared bicycle, the shared scooter, theshared electric vehicle and so on. The use of the electronic lock isdescribed by taking the electronic lock applied to a shared electricscooter as an example. As shown in FIG. 6, the shared electric scooterhas a controller, a positioning tracker, and a front straight rod 300,and the electronic lock is installed at the front straight rod 300. In apractical application, in order to make the appearance of the sharedelectric scooter be relative beautiful, a hollow front straight rod 300is adopted, and the electronic lock is installed inside the frontstraight rod 300 in a hidden way.

Specifically, a side wall of the front straight rod 300 has a rope outhole 301, a second keyhole 302, a second lock hole 303, and a pluralityof first threaded holes 304 for installing the electronic lock. Theelectronic lock is installed inside the front straight rod 300, and thefirst threaded holes 304 correspond to the second threaded holes 104one-to-one. The electronic lock is fixed at the front straight rod 300through a screw, and each of the screws correspondingly passes throughone first threaded hole 304 and one second threaded hole 104, therebyhiding the electronic lock inside the front straight rod 300, such thatthe electronic lock does not occupy additional space and does not affectthe appearance of the front straight rod 300. After the electronic lockis installed at the front straight rod 300, the lock rope head 30 isexposed outside the front straight rod 300 through the rope out hole301, and the first lock hole 101 correspondingly communicates with thesecond lock hole 303, thereby facilitating insertion or pull-out of thelock rope head 30. The first keyhole 103 correspondingly communicateswith the second keyhole 302, thereby facilitating the insertion orpull-out of the key 60.

The controlling and driving device 50 is electrically connected with thecontroller of the shared electric scooter, the positioning tracker ofthe shared electric scooter and the controller of the shared electricscooter are electrically connected, the positioning tracker of theshared electric scooter and the management platform are communicativelyconnected, and the user is communicatively connected with the managementplatform through the APP. When the locking is required, after the lockrope head 30 is inserted into the first lock hole 101, the sensor 51detects that the lock rope head 30 is locked and feeds back the resultto the controller of the shared electric scooter through the printedcircuit board 52, and the controller of the shared electric scootercontrols the shared electric scooter to be in a locking state. When theunlocking is required, the user operates the App to send the unlockinginstruction to the management platform. The management platform sendsthe unlocking instruction to the controller of the shared electricscooter through the positioning tracker, and the controller of theshared electric scooter indirectly controls the motor 53 to drive bycontrolling the printed circuit board 52, thereby achieving unlocking.

As another use, the electronic lock can also be applied to the sharedbicycle. Similarly, the shared bicycle has the controller and thepositioning tracker, and the controlling and driving device 50 iselectrically connected with the controller of the shared bicycle. Thepositioning tracker of the shared bicycle and the controller of theshared bicycle are electrically connected, the positioning tracker ofthe shared bicycle and the management platform are communicativelyconnected, and the user is communicatively connected with the managementplatform through the APP. During usage, when the locking is required,the user first pulls out the lock rope head 30 from the insertion hole102, and the lock rope 21 is pulled out from the rope winded disc 20 andis winded at a fixture, for example, a tree. Then the lock rope head 30is inserted into the first lock hole 101, and the sliding lock block 40locks the lock rope head 30. In this way, the shared bicycle is boundwith the fixture through the lock rope 21 of the electronic lock andcannot be ridden by others. When the unlocking is required, the useroperates the App to send the unlocking instruction to the managementplatform. The management platform sends the unlocking instruction to thecontroller of the shared bicycle through the positioning tracker, andthe controller of the shared bicycle indirectly controls the motor 53 todrive by controlling the printed circuit board 52, thereby achievingunlocking.

The electronic lock is added to the shared vehicle, and the electroniclock does not affect the charging for the vehicle lock of the sharedvehicle. The electronic lock and the vehicle lock are independently usedand connected with the management platform system through APP of theuser to send, receive and execute the instruction. In this way, when theuser needs to leave in the middle of the riding trip, the vehicle lockof the shared vehicle does not need to be locked, and the previousriding trip does not need to be ended. Instead, the electronic lock canbe used to lock the shared vehicle for a short time, such that theshared vehicle will not be ridden by others. When the user comes back,the electronic lock can be unlocked through APP of the user, therebycontinue using the shared vehicle. The user does not need to findanother vehicle, there is no need to scan the quick response code againto unlock the lock, and the timing and charging of the entire ridingtrip will not be stopped. This invention solves the problem that theconventional shared vehicle cannot stop for a short time in the middleof the riding trip and the vehicle lock cannot be locked without endingthe trip, such that the using function of the shared vehicle is morehumanized, which avoids the trouble of finding another vehicle when theuser leaves for a short time and greatly improves the user's experience.

It should be understood by those skilled in the art that theabove-mentioned description and embodiments of this invention shown inthe accompany drawings are only examples and do not limit thisinvention. The objective of this invention has been fully andeffectively realized. The function and structural principle of thisinvention have been shown and explained in the embodiments, and theremay be any variations and modifications for implementing this inventionwithout departing from the principle.

What is claimed is:
 1. An electronic lock comprising: a lock shell,having a first lock hole and an insertion hole; a rope winded disc,disposed inside the lock shell, wherein a lock rope is winded at therope winded disc, and the lock rope is operatively pulled out from therope winded disc or returns inside the rope winded disc; a lock ropehead, inserted into the insertion hole and connected with one end of thelock rope; a sliding lock block, disposed inside the lock shell througha spring, wherein one end of the sliding lock block is placed in thefirst lock hole; and a controlling and driving device, disposed insidethe lock shell, wherein when locking is required, a user pulls out thelock rope head from the insertion hole, the lock rope head is insertedinto the first lock hole after the lock rope is pulled out from the ropewinded disc, and the sliding lock block locks the lock rope head; andwhen unlocking is required, the controlling and driving device drivesthe sliding lock block to slide in an opposite direction, the user pullsout the lock rope head from the first lock hole, and the sliding lockblock returns to an original position through the spring.
 2. Theelectronic lock according to claim 1, wherein the controlling anddriving device comprising: a sensor, disposed inside the lock shell; aprinted circuit board, disposed inside the lock shell and electricallyconnected with the sensor; and a motor, disposed inside the lock shelland electrically connected with the printed circuit board, whereinduring usage, when the lock rope head is inserted into the first lockhole, the sensor detects that the lock rope head is locked and feedsback a result; and when the printed circuit board receives an unlockinstruction, the printed circuit board controls the motor such that themotor drives the sliding lock block to slide in the opposite directionfor unlocking.
 3. The electronic lock according to claim 2, wherein thecontrolling and driving device further comprises a pin and a spring, oneend of the pin is located in the first lock hole, the spring is disposedinside the lock shell and abuts against the pin such that the pin andthe sensor keep in contact, and the sensor detects whether the lock ropehead is inserted into the first lock hole.
 4. The electronic lockaccording to claim 2, wherein the controlling and driving device furthercomprises a cam, the cam is installed at an output shaft of the motor,the cam has a spiral sliding surface taking the output shaft of themotor as a center, and one end of the sliding lock block abuts againstthe sliding surface of the cam.
 5. The electronic lock according toclaim 3, wherein the controlling and driving device further comprises acam, the cam is installed at an output shaft of the motor, the cam has aspiral sliding surface taking the output shaft of the motor as a center,and one end of the sliding lock block abuts against the sliding surfaceof the cam.
 6. The electronic lock according to claim 4, wherein the camhas two first limiting blocks spaced apart, the lock shell has twosecond limiting blocks spaced apart, and the motor stops rotating whenthe motor rotates to a position where one of the first limiting blocksis stuck into one of the second limiting b locks.
 7. The electronic lockaccording to claim 5, wherein the cam has two first limiting blocksspaced apart, the lock shell has two second limiting blocks spacedapart, and the motor stops rotating when the motor rotates to a positionwhere one of the first limiting blocks is stuck into one of the secondlimiting b locks.
 8. The electronic lock according to claim 1, whereinthe rope winded disc has a winding mechanism arranged in a spiral way,the lock rope is winded along the winding mechanism in the spiral way,and the lock rope automatically returns inside the rope winded discunder action of the winding mechanism when the lock rope head is pulledout from the first lock hole.
 9. The electronic lock according to claim2, wherein the rope winded disc has a winding mechanism arranged in aspiral way, the lock rope is winded along the winding mechanism in thespiral way, and the lock rope automatically returns inside the ropewinded disc under action of the winding mechanism when the lock ropehead is pulled out from the first lock hole.
 10. The electronic lockaccording to claim 3, wherein the rope winded disc has a windingmechanism arranged in a spiral way, the lock rope is winded along thewinding mechanism in the spiral way, and the lock rope automaticallyreturns inside the rope winded disc under action of the windingmechanism when the lock rope head is pulled out from the first lockhole.
 11. The electronic lock according to claim 1, wherein a side wallof one end of the lock rope head forms an annular depression, and oneend of the sliding lock block fastens the depression of the lock ropehead thereby locking the lock rope head when the lock rope head isinserted into the first lock hole.
 12. The electronic lock according toclaim 2, wherein a side wall of one end of the lock rope head forms anannular depression, and one end of the sliding lock block fastens thedepression of the lock rope head thereby locking the lock rope head whenthe lock rope head is inserted into the first lock hole.
 13. Theelectronic lock according to claim 3, wherein a side wall of one end ofthe lock rope head forms an annular depression, and one end of thesliding lock block fastens the depression of the lock rope head therebylocking the lock rope head when the lock rope head is inserted into thefirst lock hole.
 14. The electronic lock according to claim 1, whereinthe electronic lock comprises a key, the lock shell has a first keyhole,and the key drives the sliding lock block to slide thereby unlocking thelock rope head when the key is inserted into the first keyhole and thekey works.
 15. The electronic lock according to claim 2, wherein theelectronic lock comprises a key, the lock shell has a first keyhole, andthe key drives the sliding lock block to slide thereby unlocking thelock rope head when the key is inserted into the first keyhole and thekey works.
 16. The electronic lock according to claim 3, wherein theelectronic lock comprises a key, the lock shell has a first keyhole, andthe key drives the sliding lock block to slide thereby unlocking thelock rope head when the key is inserted into the first keyhole and thekey works.
 17. A use of the electronic lock as claimed in claim 1,wherein the electronic lock is applied to a shared vehicle.
 18. A use ofthe electronic lock as claimed in claim 2, wherein the electronic lockis applied to a shared electric scooter, the shared electric scooter hasa controller, a positioning tracker, and a front straight rod, theelectronic lock is installed at the front straight rod, the controllingand driving device is electrically connected with the controller, thepositioning tracker and the controller are electrically connected, thepositioning tracker and a management platform are communicativelyconnected, and the user is communicatively connected with the managementplatform through APP; when the locking is required, the lock rope headis inserted into the first lock hole, the sensor detects that the lockrope head is locked and feeds back the result to the controller throughthe printed circuit board, and the controller controls the sharedelectric scooter to be in a locking state; and when the unlocking isrequired, the user operates App to send the unlocking instruction to themanagement platform, the management platform sends the unlockinginstruction to the controller through the positioning tracker, and thecontroller indirectly controls the motor to drive by controlling theprinted circuit board, thereby achieving unlocking.